{# Add a sending domain (dialog body). A 422 re-renders it with ``errors``. #} {% from "components/macros/layout.html" import dialog_title %} {% from "components/macros/form.html" import field, form_footer, text_input %} {% from "components/macros/feedback.html" import error_banner %} {{ dialog_title("Add a sending domain", "Resend lists the DNS records to create at your registrar.") }}
{{ error_banner(errors) }} {% call field("Domain") %}{{ text_input("domain", None, "mail.example.com", required=True, autofocus=True) }}{% endcall %} {{ form_footer("Add") }}